<?php
foreach( $my_pages['data'] as $key => $val )
{
    echo $this->get_tag('h2',ucfirst($val['title']));
    echo $this->get_tag('p',App::Helper('Utility')->codeFormated($val['content']));
}